﻿using DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using WebAPIVue.Models;
using WebAPIVue.Models.InputValues;

namespace WebAPIVue.Controllers.WebApiController
{
    public class HerosController : ApiController
    {
        // GET api/<controller>
        public IEnumerable<Heros> Get()
        {

            return HerosDao.GetHeros();
        }

        // GET api/<controller>/5
        public string Get(int id)
        {
            return "value";
        }

        // POST api/<controller>
        public void Post([FromBody]string value)
        {
        }

        // PUT api/<controller>/5
        public void Put([FromBody]List<PutHeroIn> input)
        {
            HerosDao.AddHeros(input);
        }

        // DELETE api/<controller>/5
        public void Delete(int id)
        {
        }
    }
}